<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>IIFT模式</title>
</head>
<body>

</body>
<script src="module1.js"></script>
<script>
    console.log(module1.data);
    module1.foo()

    module1.data="xmh"
    console.log(module1.data)

    console.log(module1.i)


</script>
</html>